package es.tiare;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import es.tiare.model.Product;

@ManagedBean(name="productsBean")
@ApplicationScoped
public class ProductsBean {
	
	private List<Product> productos;

	public ProductsBean() {
		productos = new ArrayList<Product>();
		//String smallUrl, String bigUrl, String ref, String medidas, String acabados
		/*
		productos.add(new Product("/images/catalog/", "/images/catalog/", "lolo", null, "Cromo/Oro"));
		*/
		productos.add(new Product("/images/catalog/2157edit_small.jpg", "/images/catalog/2157edit_big.jpg", "2157", "30, 40, 50 (cm)", "Cromo/Oro", "dlg1", "35, 35, 43 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/2157_bolas_edit_small.jpg", "/images/catalog/2157_bolas_edit_big.jpg", "2157Bolas", "30, 40, 50 (cm)", "Cromo/Oro", "dlg2", "25, 30, 35 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/2020edit_small.jpg", "/images/catalog/2020edit_big.jpg", "2020", "32, 42 (cm)", "Cromo/Oro", "dlg3", "30, 34 (cm)", "4, 4, (u.)"));
		productos.add(new Product("/images/catalog/2008edit_small.jpg", "/images/catalog/2008edit_big.jpg", "2008", "20, 35, 45, 55 (cm)", "Cromo/Oro", "dlg4", "30, 26, 30, 35 (cm)", "1, 4, 4, 7 (u.)"));
		productos.add(new Product("/images/catalog/2029edit_small.jpg", "/images/catalog/2029edit_big.jpg", "2029", "30, 35, 40, 50 (cm)", "Cromo/Oro", "dlg5", "25, 30, 30, 35 (cm)", "3, 3, 5, 5 (u.)"));
		productos.add(new Product("/images/catalog/2040edit_small.jpg", "/images/catalog/2040edit_big.jpg", "2040", "30, 40, 50 (cm)", "Cromo/Oro", "dlg6", "28, 28, 35 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/2030edit_small.jpg", "/images/catalog/2030edit_big.jpg", "2030", "30, 40, 50 (cm)", "Cromo/Oro", "dlg7", "25, 30, 35 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/2023edit_small.jpg", "/images/catalog/2023edit_big.jpg", "2023", "30, 40, 50 (cm)", "Cromo/Oro", "dlg8", "22, 27, 30 (cm)", "4, 4, 4 (u.)"));
		productos.add(new Product("/images/catalog/129edit_small.jpg", "/images/catalog/129edit_big.jpg", "129", "30, 40, 50 (cm)", "Cromo/Oro", "dlg9", "30, 35, 38 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/1047edit_small.jpg", "/images/catalog/1047edit_big.jpg", "1047", "30, 40, 50 (cm)", "Cromo/Oro", "dlg10", "27, 32, 36 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/colgantes_edit_small.jpg", "/images/catalog/colgantes_edit_big.jpg", "Colgantes", "19 (cm)", "Cromo/Oro", "dlg11", "30 (cm)", "1 (u.)"));
		
		//nuevos productos
		productos.add(new Product("/images/catalog/2040_edit_small.jpg", "/images/catalog/2040_edit_big.jpg", "2040 B", "30, 40, 50 (cm)", "Cromo/Oro", "dlg12", "28, 30, 32 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/2042_edit_small.jpg", "/images/catalog/2042_edit_big.jpg", "2042", "30, 40, 50 (cm)", "Cromo/Oro", "dlg13", "35, 34, 32 (cm)", "3, 4, 5 (u.)"));
		productos.add(new Product("/images/catalog/ap_2042_edit_small.jpg", "/images/catalog/ap_2042_edit_big.jpg", "Aplique 2042", "27, 32 (cm)", "Cromo/Oro", "dlg14", "18, 25 (cm)", "2, 2 (u.)"));
		productos.add(new Product("/images/catalog/2044_edit_small.jpg", "/images/catalog/2044_edit_big.jpg", "2044", "46 (cm)", "Cromo/Oro", "dlg15", "45 (cm)", "3 (u.)"));
		productos.add(new Product("/images/catalog/ap_2040_edit_small.jpg", "/images/catalog/ap_2040_edit_big.jpg", "Aplique 2040", "26, 21 (cm)", "Cromo/Oro", "dlg16", "20, 18 (cm)", "2, 2 (u.)"));
		productos.add(new Product("/images/catalog/teja3_edit_small.jpg", "/images/catalog/teja3_edit_big.jpg", "Teja", "59 (cm)", "Teja", "dlg17", "44 (cm)", "3 (u.)"));
		productos.add(new Product("/images/catalog/ap_teja2_edit_small.jpg", "/images/catalog/ap_teja2_edit_big.jpg", "Aplique Teja/2", "28 (cm)", "Teja", "dlg18", "30 (cm)", "2 (u.)"));
		productos.add(new Product("/images/catalog/ap_teja3_edit_small.jpg", "/images/catalog/ap_teja3_edit_big.jpg", "Aplique Teja/3", "37 (cm)", "Teja", "dlg19", "41 (cm)", "3 (u.)"));
		productos.add(new Product("/images/catalog/colgantes_2_small.jpg", "/images/catalog/colgantes_2_big.jpg", "Colgantes B", "23, 27 (cm)", "Cromo/Oro", "dlg20", "50, 30 (cm)", "3, 1 (u.)"));
		productos.add(new Product("/images/catalog/mteresa_2046_small.jpg", "/images/catalog/mteresa_2046_big.jpg", "Mª Teresa 2046", "58, 72, 72 (cm)", "Cromo/Oro", "dlg21", "60, 62, 62 (cm)", "5, 6, 8 (u.)"));
		productos.add(new Product("/images/catalog/mteresa_2_small.jpg", "/images/catalog/mteresa_2_big.jpg", "Mª Teresa 2046/2", "33 (cm)", "Cromo/Oro", "dlg22", "27 (cm)", "2 (u.)"));
		productos.add(new Product("/images/catalog/mteresa_3_small.jpg", "/images/catalog/mteresa_3_big.jpg", "Mª Teresa 2046/3", "30 (cm)", "Cromo/Oro", "dlg23", "30 (cm)", "3 (u.)"));
		productos.add(new Product("/images/catalog/mteresa_6_small.jpg", "/images/catalog/mteresa_6_big.jpg", "Mª Teresa 2046/6", "50 (cm)", "Cromo/Oro", "dlg24", "50 (cm)", "6 (u.)"));
		productos.add(new Product("/images/catalog/mteresa_2045_small.jpg", "/images/catalog/mteresa_2045_big.jpg", "Mª Teresa 2045", "58, 72, 72 (cm)", "Cromo/Oro", "dlg25", "60, 62, 62 (cm)", "5, 6, 8 (u.)"));

		
	}
	
	public ProductsBean(List<Product> productos) {
		super();
		this.productos = productos;
	}

	public List<Product> getProductos() {
		return productos;
	}

	public void setProductos(List<Product> productos) {
		this.productos = productos;
	}
	
	
	
	

}

